package com.zhongjian.technologycal.mall.base;

import android.content.Context;

import com.zhongjian.technologycal.mall.baserx.RxManager;


/**
 * Created by wei on 2017/11/6.
 */

public abstract class BasePresenter<T,E> {
    public Context mContext;
    public E mModel;
    public T mView;

    public RxManager mRxManage = new RxManager();
    public void setVM(T v, E m) {
        this.mView = v;
        this.mModel = m;
        this.onStart();
    }
    public void onStart(){

    }
    public void onDestroy() {

        mRxManage.clear();
    }

}
